const express = require('express');
const router = express.Router();
const path = require('path');
const getFileData = require('../utils/readFile')
router.get('/seller',async (req,res)=>{
    let sellerData = await getFileData(path.join(__dirname,'../data/seller.json'))
    res.send(sellerData)
    
})
router.get('/trend',async (req,res)=>{
    let trendData = await getFileData(path.join(__dirname,'../data/trend.json'))
    res.send(trendData)
})
module.exports=router;